package com.melon.modules.test.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 演示接收httpclient 的get post请求方式.
 * Author: Xiong Jin Teng
 * Date: 2016/9/27
 * Time: 9:07
 */
@Controller
@RequestMapping("/test/http")
public class HttpDemoController {

    @ResponseBody
    @RequestMapping("/index")
    public Object index() {
        return "index";

    }
}
